#include "stdafx.h"
#include "KinString.h"




KinControl::KinString::KinString( void )
{

}

void KinControl::KinString::ConvertToEasyString( System::String^ sSource, PTSTR pDest, int nCount )
{
	for (int i = 0; i < sSource->Length; ++i)
	{
		if (i >= nCount - 1)
		{
			pDest[nCount - 1] = 0;
			return;
		}
		pDest[i] = sSource[i];
	}
	pDest[sSource->Length] = 0;
}
